/*
 * SonarQube
 * Copyright (C) 2009-2021 SonarSource SA
 * mailto:info AT sonarsource DOT com
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 3 of the License, or (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program; if not, write to the Free Software Foundation,
 * Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
 */
.markdown-content .alert {
  margin-bottom: var(--gridSize);
  border: 1px solid;
  border-radius: 2px;
}

.markdown-content .alert.is-inline {
  display: inline-flex;
}

.markdown-content .alert:empty {
  display: none;
}

.markdown-content .alert-error,
.markdown-content .alert-danger {
  border-color: var(--alertBorderError);
  background-color: var(--alertBackgroundError);
  color: var(--alertTextError);
}

.markdown-content .alert-error .alert-icon,
.markdown-content .alert-danger .alert-icon {
  border-color: var(--alertBorderError);
}

.markdown-content .alert-warning {
  border-color: var(--alertBorderWarning);
  background-color: var(--alertBackgroundWarning);
  color: var(--alertTextWarning);
}

.markdown-content .alert-warning .alert-icon {
  border-color: var(--alertBorderWarning);
}

.markdown-content .alert-info {
  border-color: var(--alertBorderInfo);
  background-color: var(--alertBackgroundInfo);
  color: var(--alertTextInfo);
}

.markdown-content .alert-info .alert-icon {
  border-color: var(--alertBorderInfo);
}

.markdown-content .alert-success {
  border-color: var(--alertBorderSuccess);
  background-color: var(--alertBackgroundSuccess);
  color: var(--alertTextSuccess);
}

.markdown-content .alert-success .alert-icon {
  border-color: var(--alertBorderSuccess);
}
